//
//  ViewController.m
//  发布求租
//
//  Created by MB__Lee on 2018/6/6.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "ViewController.h"


#import "MBSeletedCVC.h"
#import "MBRegionSelectVC.h"
#import "MBReleaseQZVC.h"
#import "MBReleaseSourceTool.h"

#import "MBReleaseResidentVC.h"
#import "MBQZVCFactory.h"
#import "MBHouseBTNCell.h"
#import "MBReleaseHouseVC.h"

#import "MBHouseReleaseVC.h"

@interface ViewController ()<MBSeletedCVCDelegate,MBRegionSelectVCDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
//    
//    
//    MBHouseBTNCell *cell = [[NSBundle mainBundle]loadNibNamed:@"MBHouseBTNCell" owner:nil options:nil].lastObject;
//    cell.frame = CGRectMake(0, 100, SCREEN_WIDTH, 500);
//    MBCircleBTNModel *model =  [[MBCircleBTNModel alloc] init];
//    model.btnNameMut = [NSMutableArray arrayWithArray:@[@"标志性", @"5A甲级", @"名企", @"地铁口附近", @"电梯口", @"商业街附近", @"整层整栋", @"小面积", @"停车位多", @"可注册公司"]];
//    model.title = @"test";
//    cell.BTNModel = model;
//    
//    [self.view addSubview:cell];
//    
    
}
- (IBAction)releaseQiuZu:(id)sender {
    
//    MBReleaseQZVC *vc  = [[MBReleaseResidentVC alloc] init];
//    vc.sourceMut = [MBReleaseSourceTool MBReleaseSourceTool_CreatWithType:SourceTypeResident];
//    vc.selectedIndex = 1;
    MBReleaseQZVC  *vc  = [MBQZVCFactory MBQZVCFactoryCreatWithType:ReleaseVCTypeResident];
    
    [self.navigationController pushViewController:vc animated:YES];
    
    
}


- (IBAction)district:(id)sender {
    MBRegionSelectVC *vc = [[MBRegionSelectVC alloc] init];
    vc.delegate = self;
    [self presentViewController:vc animated:YES completion:nil];
    
}

- (IBAction)selecteVC:(id)sender {
    
    MBSeletedCVC *vc  = [[MBSeletedCVC alloc] init];
    vc.contentMut = @[@"1",@"2",@"3",@"4",@"1",@"2",@"3",@"4",@"1",@"2",@"3",@"4",@"1",@"2",@"3",@"4",@"1",@"2",@"3",@"4",@"1",@"2",@"3",@"9"];
    vc.delegate = self;
    [self presentViewController:vc animated:YES completion:nil];
}
#pragma mark ---区域选择
-(void)MBRegionSelectVCSendDistrictModel:(ArDistrictModel *)disModel regionModel:(ArRegionModel *)reModel{
    NSLog(@"%@",disModel);
    NSLog(@"%@",reModel);
}

-(void)MBSeletedCVCSendSelectedMut:(NSMutableArray *)mut{
    NSLog(@"%@",mut);
}

- (IBAction)releaseZuFang:(id)sender {
    
    MBReleaseHouseVC *vc = [[MBReleaseHouseVC alloc] init];
    vc.sourceMut = [MBReleaseSourceTool MBReleaseSourceTool_CreatWithType:SourceType_houseResident];
    vc.selectedIndex = 0;
    [self.navigationController pushViewController:vc animated:YES];
    
}


- (IBAction)test:(id)sender {
    
    MBHouseReleaseVC *vc  = [[MBHouseReleaseVC alloc] init];
    vc.sourceMut = [MBReleaseSourceTool MBReleaseSourceTool_CreatWithType:SourceType_houseResident];
    [self.navigationController pushViewController:vc animated:YES];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
